{messages block='gallery'}
<table style="width:100%;" cellpadding="5" cellspacing="5">
 <tr>
 <td style="font-size:9pt;">
{if $iCnt}
<div style="text-align:right;">
{str_replace text="`viewing_ifrom_ito_out_of_icnt_image`" iFrom="`$iFrom`" iTo="`$iTo`" iCnt="`$iCnt`" }
<br/><br/>
</div>
{/if}

 <br />
{include file="$sRootPath/_blocks/pager_nav_button.html"}

{if count($aItems)}
 <table style="width:100%;margin-left:auto;margin-right:auto;" cellpadding="4" cellspacing="4">
 <tr>
{foreach from=$aItems key=key item=aItem name=aitems}
    <td style="width:125px; font-size:11pt;">
    	<b>{$aItem.text|process_code|truncate:'75'}</b>
    	<div>
 		<a href="{url link='public.user.gallery.view' name=$aItem.user id=$aItem.id foxseotitle=$aItem.text}"{if $aItem.is_adult} onclick="return confirm('{language text="this_picture_can_be_erotic_in_natur"}');"{/if}>
 		{if $aItem.is_adult}<img src='design/pic/18+.jpg' width='120' alt='' height='120' style="vertical-align:middle;" class="pic1" onmouseover="this.className='pic2';" onmouseout="this.className='pic1';" />{else}{img src="`$sImageUrl`thumb/`$aItem.id`.jpg" src_def="design/pic/noimage_120.jpg" alt="" style="vertical-align:middle;" class="pic1" onmouseover="this.className='pic2';" onmouseout="this.className='pic1';"}{/if}
 		</a>
 		</div>
    {if isStaff()}
    	<div style="padding:5px;">
    		<a class="link_action" href="{url link='current' delete=$aItem.id}" onclick="sure('');">[ {language text='delete'} ]</a>
    		{if $aItem.feature == 1}<a class="link_action" href="{url link='current' removefeature=$aItem.id}">[ {language text="unmake_featured"} ]</a>{else}<a class="link_action" href="{url link='current' makefeature=$aItem.id}">[ {language text="make_featured_763"} ]</a>{/if}	
    	</div>
    {/if} 		
 	</td>
{if $key % 3 == 2}
</tr>
<tr>
{/if}
{/foreach}
 	 </tr>
 </table>
{else}
<div class="message_info">{language text="there_are_no_pictures_posted_yet"}</div>
{/if}
{include file="$sRootPath/_blocks/pager_nav_button.html"}

 <br /><br />
 </td>
 </tr>
 </table>